<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {include file="../application/index/view/common/link.html" /}
</head>
<body>
<!--头部-->
{include file="../application/index/view/common/header.html" /}
<div class="shop-main">
    <div class="layui-container">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md8">
                <div class="panel shop-content">
                    <div class="sc-left">
                        <img src="{:_get_image_preview_url($app.app_photo)}" alt="">
                    </div>
                    <div class="sc-right">
                        <h2 class="shop-title"> <strong>{$app.app_name}</strong></h2>
                        <div class="shop-attr">
                            {volist name='app.category' id='v'}
                            <a>{$v.name}</a>
                            {/volist}
                        </div>
                        <div class="author">
                            <a href="{:url('index/index/user_jianjie',['user'=>$app.user.id])}">
                                <div class="avatar">
                                    <img src="{:_get_image_preview_url($app.user.avatar)}" alt="">
                                </div>
                                <div class="author-content">
                                    <p class="username">{$app.user.nickname|default=$app.user.username}</p>
                                    <p class="jianjie">{$app.user.sign_name|default=''}</p>
                                </div>
                                <div class="clear-both"></div>
                                <span class="direction">
                                   <i class="layui-icon layui-icon-right "></i>
                                </span>
                            </a>

                        </div>
                        <div class="playbox">
                            <a href="{:url('index/appshop/download',['id'=>$app.id])}" class="down">立即下载（30积分）</a>
                            <a href="" class="top-up">积分充值</a>
                        </div>
                        <div class="app-desc">
                            <div class="content">
                                <span class="details-jianjie"><strong>简介:</strong></span>
                                {$app.app_seo_desc}
                            </div>
                        </div>
                    </div>
                    <div class="clear-both"></div>
                </div>
                <div class="panel sptext-box">
                    <div class="layui-tab layui-tab-brief">
                        <ul class="layui-tab-title">
                            <li class="layui-this">详情</li>
                            <li> 评价</li>
                            <li>购买说明</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show sp-details">
                                {$app.app_contents|raw}
                            </div>
                            <div class="layui-tab-item ">
                                {if $app.is_comment == 1}
                                {:hook_one('commnents_view',["topic_id"=>$app.id,'topic_type'=>2,'from_uid'=>$user.id,"to_uid"=>0])}
                                {/if}
                            </div>
                            <div class="layui-tab-item paysm">
                                {$app.buy_desc|raw}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-md4">
                <div class="panel shop-new">
                    <h3><strong>最新上传</strong></h3>
                    <ul class="layui-timeline ns-time-line">
                        {volist name='newAppList' id='v'}
                        <li class="layui-timeline-item">
                            <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                            <div class="layui-timeline-content layui-text">
                                <div class="layui-timeline-title">{$v.update_time|date="m月d日"}</div>
                                <h4>
                                    <a href="{:url('index/appshop/content',['shop'=>$v.id])}">{$v.app_name}</a>
                                </h4>
                            </div>
                        </li>
                        {/volist}
                    </ul>
                </div>
                <div class="panel shop-hot">
                    <h3><strong>热门下载</strong></h3>
                    <ol class="sp-hot-list">
                        {volist name='hotAppList' id='v'}
                        <li>
                            <a href="">
                                <i class="iconfont icon-huore"></i>
                                {$v.app_name}
                                <span class="downum">{$v.app_install}次下载</span>
                            </a>
                        </li>
                        {/volist}
                    </ol>
                </div>
            </div>
        </div>
    </div>
</div>
<!--底部-->
{include file="../application/index/view/common/righ_fixed.html" /}
<!--右侧固定导航区域-->
{include file="../application/index/view/common/footer.html" /}
</body>
</html>